import Vue from "vue";
import VueRouter from 'vue-router'

Vue.use(VueRouter)
const routes = [
    // 首页
    {
        path: "/topic",
        name: 'topic',
        component: (resolve) => require(['../../components/Topic'], resolve)
    },
    // 用户中心
    {
        path: "/userCenter",
        name: 'userCenter',
        component: (resolve) => require(['../../components/UserCenter/index'], resolve)
    },
    {
        path: "/manager",
        name: 'manager',
        component: (resolve) => require(['../../components/Manager'], resolve)
    }, 
    // {
    //     path: "/index",
    //     name: 'home',
    //     component: (resolve) => require(['../../components/Home'], resolve)
    // },
    {
        path: "/topic/publish",
        name: 'topic',
        component: (resolve) => require(['../../components/TopicPublish'], resolve)
    }, 
    {
        path: "/slide",
        name: 'slide',
        component: (resolve) => require(['../../components/SlideNavigate'], resolve)
    }, 
    {
        path: "/banner",
        name: 'banner',
        component: (resolve) => require(['../../components/Banner'], resolve)
    }, 
    {
        path: "/comment/push",
        name: 'comment_push',
        component: (resolve) => require(['../../components/Comment'], resolve)
    },{
        path: "/",
        name: 'home',
        component: (resolve) => require(['../../components/Index'], resolve)
    }
]
export default new VueRouter({mode: 'history', routes})

